<table>
 	<tbody>
 	<if condition="empty($list) eq true">
 		<tr data-id="0">
	        <td class="no-data" align="center" axis="col0" colspan="50">
	        	<i class="fa fa-exclamation-circle"></i>没有符合条件的记录
	        </td>
	     </tr>
	<else/>
        <volist name="list" id="v">
            <tr>
                <td class="sign">
                    <div style="width: 24px;"><i class="ico-check"></i></div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 50px;">{$v.id}</div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 80px;">{$v.user_id}</div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 100px;">{$v.realName}</div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 100px;">{$v.account}</div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 130px;">{$v.IDCart}</div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 100px;">{$v.ali}</div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 100px;">{$status[$v['status']]}</div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 120px;">{$v.admin_note}</div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 120px;">{:date('Y-m-d H:i:s', $v.add_time)}</div>
                </td>
                <td align="center" class="">
                    <div style="text-align: center; width: 120px;">{:date('Y-m-d H:i:s', $v.update_time)}</div>
                </td>
                <td align="center" class="handle">
                    <div style="text-align: center; width: 170px; max-width:170px;">
                        <if condition="$v['status'] eq 0">
                            <a class="btn blue" href="{:url('World.Miner/dealWith',['action' => '1','id' => $v['id']])}"><i class="fa fa-pencil-square-o"></i>审核通过</a>
                            <a class="btn blue" onclick="act_submit(-1,{$v.id})" href="javascript:void(0)"><i class="fa fa-pencil-square-o"></i>审核不通过</a>
                        </if>
                    </div>
                </td>
                <td align="" class="" style="width: 100%;">
                    <div>&nbsp;</div>
                </td>
            </tr>
        </volist>
      </if>
    </tbody>
</table>
<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
   
    //批量操作提交
    function act_submit(wst,id) {
        
        layer.prompt({title: '请填写备注', formType: 2}, function(text, index){
            layer.close(index);
            remark = text;
            audit(id ,  text);
        });
       
    }

    function audit(id ,remark){
        $.ajax({
            type: "POST",
            url: "/index.php?m=Admin&c=World.Miner&a=dealWith&action=-1",//+tab,
            data: {id:id,remark:remark},
            dataType: 'json',
            success: function (data) {
                if(data.code == 1){
                    layer.alert(data.msg, {
                        icon: 1,
                        closeBtn: 0
                    }, function(){
                        window.location.reload();
                    });
                }else{
                    layer.alert(data.msg, {icon: 2,time: 3000});
                }
            },
            error:function(){
                layer.alert('网络异常', {icon: 2,time: 3000});
            }
        });
    }
    $('.ftitle>h5').empty().html("(共{$pager->totalRows}条记录)");
</script>